package com.oa.modules.approvalsec1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 事项
 *
 * @author Hankaicheng
 * @email 785297226@qq.com
 * @date 2022-05-05 15:23:15
 */
@Data
@TableName("bidd_project")
@ApiModel(value = "事项")
public class BiddProjectEntity {
    /**
     * id
     */
    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "企业名称")
    private String company;

    @ApiModelProperty(value = "事项名称")
    private String itemName;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "比选方式")
    private Integer mode;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "联系人")
    private String contact;

    @ApiModelProperty(value = "联系电话")
    private String telephone;

	@ApiModelProperty(value="金额")
	private BigDecimal money;

    @ApiModelProperty(value = "项目说明")
    private String description;

    @ApiModelProperty(value = "服务事项")
    private String serviceItems;

    @ApiModelProperty("其他服务事项")
    private String otherMatter;

    @ApiModelProperty(value = "事项办理区域")
    private String area;

    @ApiModelProperty(value = "工期要求（天）")
    private Integer jobTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value="开始时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value="距离开始时间剩余")
    @TableField(exist = false)
    private Long fromStartTime;

    @ApiModelProperty("直接竞价金额")
    private BigDecimal bidd;

    @ApiModelProperty("项目说明附件")
    private String descriptionFile;

    @ApiModelProperty("服务质量")
    private Integer serviceQuality;

    @ApiModelProperty("服务态度")
    private Integer serviceAttitude;

    @ApiModelProperty("服务效率")
    private Integer serviceEfficiency;

    @ApiModelProperty("评价")
    private String evaluate;

    @ApiModelProperty("中标时间")
    private Date winTime;

    @ApiModelProperty("中标企业")
    private Integer winQiye;

    @ApiModelProperty("中标联合体")
    private Integer winJoint;

    @ApiModelProperty("竞价结果")
    @TableField(exist = false)
    private String result;

    @ApiModelProperty("我的竞价金额")
    @TableField(exist = false)
    private BigDecimal myMoney;

    @ApiModelProperty("指定的联合体")
    private Integer joint;

    @ApiModelProperty("结束时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date endTime;

    @TableField(exist = false)
    @ApiModelProperty("带选取竞价列表")
    private List<BiddEntity> bidds;

    @ApiModelProperty("创建人")
    private String createOrder;

    @ApiModelProperty("中标人")
    @TableField(exist = false)
    private BiddEntity win;

}
